API Socket documentation that was updated March 22, 2017 , indicates that now you have to use import socket
.
The demo project you are linking to is older than 4 years.
Since this is just an old demo referring to the channel API, you can be sure that the Socket API will not expire because of this.
Source: https://cloud.google.com/appengine/docs/standard/python/sockets/
In addition, as far as I know, demonstration projects are only informative.
Hedam source
share