Skip to content
Snippets Groups Projects
Commit 22b5b14e authored by Nils G.'s avatar Nils G.
Browse files

Always send websocket messages to localhost server-side

parent abc3ec16
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ from gluon.contrib.websocket_messaging import websocket_send
from http_util import GET_HOST
def WEBSOCKET_SEND(_room, _type, _data):
websocket_send('http://' + GET_HOST() + ':8888', _data, '67c371fd204fbcbf9742310d1a9d951bcca1aa86', _room.code)
websocket_send('http://127.0.0.1:8888', _data, '67c371fd204fbcbf9742310d1a9d951bcca1aa86', _room.code)
def GET_URL(_room):
return("ws://"+GET_HOST()+":8888/realtime/"+_room.code)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment