我通过 将表单的内容发送到服务器WebSocket
,如下所示:
ws = new WebSocket("ws://localhost:8888/dh");
var formdata = $('eventForm').serialize();
ws.onopen = function()
{
ws.send(formdata);
};
它在此处的服务器上接收:
def on_message(self, message):
print 'message received %s' % message
如何反序列化服务器上的表单数据?