MCPcopy
hub / github.com/tornadoweb/tornado / newMessage

Function newMessage

demos/websocket/static/chat.js:33–37  ·  view source on GitHub ↗
(form)

Source from the content-addressed store, hash-verified

31});
32
33function newMessage(form) {
34 var message = form.formToDict();
35 updater.socket.send(JSON.stringify(message));
36 form.find("input[type=text]").val("").select();
37}
38
39jQuery.fn.formToDict = function() {
40 var fields = this.serializeArray();

Callers 1

chat.jsFile · 0.70

Calls 2

valMethod · 0.80
findMethod · 0.80

Tested by

no test coverage detected