According to this
StackOverflow post, you cannot use sockets with the appspot domain. You would need to use App Engine Flexible environment with a custom runtime. Then, you could specify different ports to expose from your Docker container and your contained application to use with the
ws and
wss protocols.
In reviewing the source code you provided, you're using the nodejs runtime instead of custom and no custom ports are used either. Also, your project is no longer accessible via appspot. I am only getting 404s. Have you recently opted to shut down your application?