https://github.com/o1lab/socket.io-on-gae
Socket.io on Google App Engine
https://github.com/o1lab/socket.io-on-gae
gae websockets
Last synced: about 1 year ago
JSON representation
Socket.io on Google App Engine
- Host: GitHub
- URL: https://github.com/o1lab/socket.io-on-gae
- Owner: o1lab
- Created: 2016-09-06T18:00:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-06T18:07:32.000Z (over 9 years ago)
- Last Synced: 2025-02-13T02:20:06.213Z (over 1 year ago)
- Topics: gae, websockets
- Language: HTML
- Homepage:
- Size: 6.84 KB
- Stars: 13
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# socket.io on Google App Engine using node.js
Contents below are of [websockets sample](https://goo.gl/l3OePg) in GAE and setup is also applicable to socket.io.
This sample demonstrates how to use WebSockets on
[Google App Engine Managed VMs](https://cloud.google.com/appengine) with Node.js.
__Note:__ Secure WebSockets are currently not supported by Managed VMs.
WebSockets will only work if you load your page over HTTP (not HTTPS).
To use Secure WebSockets now, you can launch a VM on Google Compute Engine using
a custom image where you have added SSL support for WebSockets.
Refer to the [appengine/README.md](../README.md) file for instructions on
running and deploying.
## Setup
Before you can run or deploy the sample, you will need to create a new firewall
rule to allow traffic on port 65080. This port will be used for websocket
connections. You can do this with the
[Google Cloud SDK](https://cloud.google.com/sdk) with the following command:
gcloud compute firewall-rules create default-allow-websockets \
--allow tcp:65080 \
--target-tags websocket \
--description "Allow websocket traffic on port 65080"