Lines Matching refs:function
35 (function () {
36 function get_INCLUDE_URI() {
57 function Websock() {
68 'message' : function() {},
69 'open' : function() {},
70 'close' : function() {},
71 'error' : function() {}
81 function get_sQ() {
85 function get_rQ() {
88 function get_rQi() {
91 function set_rQi(val) {
95 function rQlen() {
99 function rQpeek8() {
102 function rQshift8() {
105 function rQunshift8(num) {
114 function rQshift16() {
118 function rQshift32() {
124 function rQshiftStr(len) {
128 return arr.map(function (num) {
132 function rQshiftBytes(len) {
138 function rQslice(start, end) {
149 function rQwait(msg, num, goback) {
150 var rQlen = rQ.length - rQi; // Skip rQlen() function call
169 function encode_message() {
174 function decode_message(data) {
186 function flush() {
206 function send(arr) {
212 function send_string(str) {
215 function (chr) { return chr.charCodeAt(0); } ) );
221 function recv_message(e) {
256 function on(evt, handler) {
260 function init() {
267 function open(uri) {
279 websocket.onopen = function() {
287 websocket.onclose = function(e) {
292 websocket.onerror = function(e) {
299 function close() {
306 websocket.onmessage = function (e) { return; };
311 // Takes a send function, returns reference to recv function
312 function testMode(override_send) {
315 api.close = function () {};
319 function constructor() {