Websocket connection issues with NodeJS app using SocketIO on app engine

1,261 views
Skip to first unread message

Oluwatobi Omotayo

unread,
Nov 3, 2017, 4:46:06 AM11/3/17
to Google App Engine
I just deployed my NodeJS application on app engine, the applications uses SocketIO for real time functionalities. When I run the application in the browser the web socket aspect of the app fails.
I keep getting this kind of error logs in my browser console "WebSocket connection to 'wss://talk-bot-f6dd1.appspot.com/socket.io/?EIO=3&transport=websocket&sid=VkY63uHqxve1i8EOAACk' failed: WebSocket is closed before the connection is established." What do I have to do to make SocketIO work with my NodeJS app on Google App Engine, I deployed the same application on a test server on Heroku and it works perfectly. Please I need help with this.

Yannick (Cloud Platform Support)

unread,
Nov 3, 2017, 3:13:07 PM11/3/17
to Google App Engine
Hello, unfortunately App Engine Flexible does not support WebSockets. You should instead use Compute Engine or Container Engine in order to run your websocket application.

Yannick (Cloud Platform Support)

unread,
Nov 27, 2017, 3:33:40 PM11/27/17
to Google App Engine
Hello, it is not possible to sign up for early access to Web Sockets on App Engine. A link to the signup form was posted on the feature request for a Web Sockets API.
Reply all
Reply to author
Forward
0 new messages