| Summary: | websocket can not be reconnected. | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Johnny Liu <jialiu> |
| Component: | Containers | Assignee: | Jason DeTiberus <jdetiber> |
| Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.0.0 | CC: | jdetiber, libra-onpremise-devel, nwei |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openshift-origin-node-proxy-1.16.4-2.el6op | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1034077 | Environment: | |
| Last Closed: | 2013-12-16 09:11:12 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 1034077 | ||
| Bug Blocks: | 1030648 | ||
|
Description
Johnny Liu
2013-11-25 10:20:13 UTC
OpenShift Enterprise puddle: 2013-11-26.1
1.Create nodejs-0.10 app
rhc app create njs nodejs-0.10
2.Use the attachment to replace server.js and add client.js
3.Add "websocket" to package.json
"dependencies": {
"websocket": ">= 1.0.7"
},
4. Push the changes
git add .; git commit -amp; git push
5. SSH into this app and access websocket
rhc ssh njs
cd ~/app-root/runtime/repo
[njs-newcowei.ose-1115.com.cn repo]\> node client.js ws://njs-newcowei.ose-1115.com.cn:8000/
Connecting to ws://njs-newcowei.ose-1115.com.cn:8000/
WebSocket client connected
Received: '12562275'
Received: '16203435'
Received: '7004978'
^C
6. Try to reconnect it,it is reconnected successfully.
7. cat /var/log/node-web-proxy/supervisor.log | grep -i error.
No error message, and routing information was reloaded.
|