# Test Websocket app

**URL:** <https://discuss.konghq.com/t/test-websocket-app/2105>\
**Category:** Questions\
**Tags:** kubernetes\
**Created:** [October 16, 2018, 2:56am UTC](https://discuss.konghq.com/t/test-websocket-app/2105 "2018-10-16T02:56:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chlung](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@chlung](https://discuss.konghq.com/u/chlung)\
**Post date:** [October 16, 2018, 2:56am UTC](https://discuss.konghq.com/t/test-websocket-app/2105/1 "2018-10-16T02:56:58Z")

</div>

Hi,

I try to understand how to use kong to interact with websocket application.

1. create service and ingress to access external [websocket.org](http://websocket.org)

> * * *
> 
> kind: Service  
> apiVersion: v1  
> metadata:  
> name: proxy-to-websocket  
> namespace: default  
> spec:  
> ports:
> 
> - protocol: TCP  
> port: 80  
> type: ExternalName  
> externalName: [websocket.org](http://websocket.org)
> 
> * * *

apiVersion: [configuration.konghq.com/v1](http://configuration.konghq.com/v1)  
kind: KongPlugin  
metadata:  
name: transform-request-to-websocket  
config:  
remove:  
headers: host

> * * *
> 
> apiVersion: extensions/v1beta1  
> kind: Ingress  
> metadata:  
> name: proxy-from-k8s-to-websocket  
> annotations:  
> [plugin.konghq.com](http://plugin.konghq.com): transform-request-to-websocket  
> spec:  
> rules:
> 
> - host: [echo.websocket.org](http://echo.websocket.org)  
> http:  
> paths:
> - path: /  
> backend:  
> serviceName: proxy-to-websocket  
> servicePort: 80
> 
> * * *

1. Run

> curl -X GET --url [http://100.22.4.25:31329](http://100.22.4.25:31329) -H “host: [echo.websocket.org](http://echo.websocket.org)” -H “Connection: Upgrade” -H “Upgrade: Websocket” -i -N

404 Not found

1. Run

> curl -X GET --url [http://100.22.4.25:31329](http://100.22.4.25:31329) -H “host: [echo.websocket.org](http://echo.websocket.org)”

No error

Do I miss something when config service and ingress?

Thanks.
