Lines Matching refs:frame_write

32         self.ws.frame_write(sock, self.ws.OP_CLOSE, self.ws.serialize_close())
92 self.ws.frame_write(sock, self.ws.OP_TEXT, message)
97 self.ws.frame_write(sock, self.ws.OP_TEXT, message)
111 self.ws.frame_write(sock, self.ws.OP_TEXT, message)
118 self.ws.frame_write(sock, self.ws.OP_TEXT, message)
132 self.ws.frame_write(sock, self.ws.OP_TEXT, message, mask=False)
148 self.ws.frame_write(sock, self.ws.OP_TEXT, message, fin=False)
149 self.ws.frame_write(sock, self.ws.OP_CONT, ' ', fin=False)
150 self.ws.frame_write(sock, self.ws.OP_CONT, message)
165 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment1', fin=False)
166 self.ws.frame_write(
179 self.ws.frame_write(sock, self.ws.OP_PING, message, fin=False)
204 self.ws.frame_write(sock, self.ws.OP_TEXT, message)
225 self.ws.frame_write(sock1, self.ws.OP_TEXT, message1)
226 self.ws.frame_write(sock2, self.ws.OP_TEXT, message2)
424 self.ws.frame_write(sock, opcode, payload, chopsize=chopsize)
450 self.ws.frame_write(sock, opcode, payload, chopsize=chopsize)
475 self.ws.frame_write(sock, op_ping, payload, chopsize=chopsize)
492 self.ws.frame_write(sock, self.ws.OP_PING, b'\xfe' * 126)
502 self.ws.frame_write(sock, self.ws.OP_PONG, '')
507 self.ws.frame_write(sock, self.ws.OP_PONG, 'unsolicited pong payload')
514 self.ws.frame_write(sock, self.ws.OP_PONG, 'unsolicited pong payload')
515 self.ws.frame_write(sock, self.ws.OP_PING, payload)
530 self.ws.frame_write(sock, self.ws.OP_PING, 'payload-%d' % i)
540 self.ws.frame_write(sock, opcode, 'payload-%d' % i, chopsize=1)
558 self.ws.frame_write(sock, self.ws.OP_TEXT, payload, rsv1=True)
565 self.ws.frame_write(sock, self.ws.OP_TEXT, payload)
566 self.ws.frame_write(sock, self.ws.OP_TEXT, payload, rsv2=True)
567 self.ws.frame_write(sock, self.ws.OP_PING, '')
581 self.ws.frame_write(sock, self.ws.OP_TEXT, payload)
586 self.ws.frame_write(
599 self.ws.frame_write(sock, self.ws.OP_TEXT, payload, chopsize=1)
600 self.ws.frame_write(
603 self.ws.frame_write(sock, self.ws.OP_PING, '')
617 self.ws.frame_write(
631 self.ws.frame_write(
641 self.ws.frame_write(
656 self.ws.frame_write(sock, 0x03, '')
663 self.ws.frame_write(sock, 0x04, 'reserved opcode payload')
670 self.ws.frame_write(sock, self.ws.OP_TEXT, payload)
675 self.ws.frame_write(sock, 0x05, '')
676 self.ws.frame_write(sock, self.ws.OP_PING, '')
684 self.ws.frame_write(sock, self.ws.OP_TEXT, payload)
689 self.ws.frame_write(sock, 0x06, payload)
690 self.ws.frame_write(sock, self.ws.OP_PING, '')
698 self.ws.frame_write(sock, self.ws.OP_TEXT, payload, chopsize=1)
703 self.ws.frame_write(sock, 0x07, payload, chopsize=1)
704 self.ws.frame_write(sock, self.ws.OP_PING, '')
712 self.ws.frame_write(sock, 0x0B, '')
719 self.ws.frame_write(sock, 0x0C, 'reserved opcode payload')
726 self.ws.frame_write(sock, self.ws.OP_TEXT, payload)
731 self.ws.frame_write(sock, 0x0D, '')
732 self.ws.frame_write(sock, self.ws.OP_PING, '')
740 self.ws.frame_write(sock, self.ws.OP_TEXT, payload)
745 self.ws.frame_write(sock, 0x0E, payload)
746 self.ws.frame_write(sock, self.ws.OP_PING, '')
754 self.ws.frame_write(sock, self.ws.OP_TEXT, payload, chopsize=1)
759 self.ws.frame_write(sock, 0x0F, payload, chopsize=1)
760 self.ws.frame_write(sock, self.ws.OP_PING, '')
771 self.ws.frame_write(sock, self.ws.OP_PING, 'fragment1', fin=False)
772 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment2', fin=True)
779 self.ws.frame_write(sock, self.ws.OP_PONG, 'fragment1', fin=False)
780 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment2', fin=True)
787 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment1', fin=False)
788 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment2', fin=True)
795 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment1', fin=False)
797 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment2', fin=True)
804 self.ws.frame_write(
807 self.ws.frame_write(
818 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment1', fin=False)
819 self.ws.frame_write(sock, self.ws.OP_PING, ping_payload)
820 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment2', fin=True)
832 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment1', fin=False)
835 self.ws.frame_write(sock, self.ws.OP_PING, ping_payload)
840 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment2', fin=True)
849 self.ws.frame_write(
852 self.ws.frame_write(sock, self.ws.OP_PING, ping_payload, chopsize=1)
853 self.ws.frame_write(
865 self.ws.frame_write(
868 self.ws.frame_write(sock, self.ws.OP_TEXT, 'Hello, world!', fin=True)
875 self.ws.frame_write(
878 self.ws.frame_write(sock, self.ws.OP_TEXT, 'Hello, world!', fin=True)
885 self.ws.frame_write(
892 self.ws.frame_write(
901 self.ws.frame_write(
904 self.ws.frame_write(sock, self.ws.OP_TEXT, 'Hello, world!', fin=True)
911 self.ws.frame_write(
914 self.ws.frame_write(sock, self.ws.OP_TEXT, 'Hello, world!', fin=True)
921 self.ws.frame_write(
928 self.ws.frame_write(
937 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment1', fin=False)
938 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment2', fin=True)
939 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment3', fin=False)
940 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment4', fin=True)
955 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment1', fin=False)
956 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment2', fin=False)
957 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment3', fin=True)
965 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment1', fin=True)
966 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment2', fin=False)
967 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment3', fin=True)
974 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment1', fin=False)
975 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment2')
982 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment1', fin=False)
983 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment2', fin=False)
984 self.ws.frame_write(sock, self.ws.OP_PING, 'pongme 1!')
988 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment3', fin=False)
989 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment4', fin=False)
990 self.ws.frame_write(sock, self.ws.OP_PING, 'pongme 2!')
991 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment5')
1008 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment1', fin=False)
1009 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment2', fin=False)
1010 self.ws.frame_write(sock, self.ws.OP_PING, 'pongme 1!')
1017 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment3', fin=False)
1018 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment4', fin=False)
1019 self.ws.frame_write(sock, self.ws.OP_PING, 'pongme 2!')
1025 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment5')
1043 self.ws.frame_write(sock, self.ws.OP_TEXT, '')
1049 self.ws.frame_write(sock, self.ws.OP_TEXT, '', fin=False)
1050 self.ws.frame_write(sock, self.ws.OP_CONT, '', fin=False)
1051 self.ws.frame_write(sock, self.ws.OP_CONT, '')
1060 self.ws.frame_write(sock, self.ws.OP_TEXT, '', fin=False)
1061 self.ws.frame_write(sock, self.ws.OP_CONT, payload, fin=False)
1062 self.ws.frame_write(sock, self.ws.OP_CONT, '')
1071 self.ws.frame_write(sock, self.ws.OP_TEXT, payload)
1078 self.ws.frame_write(sock, self.ws.OP_TEXT, payload[:12], fin=False)
1079 self.ws.frame_write(sock, self.ws.OP_CONT, payload[12:])
1133 self.ws.frame_write(sock, self.ws.OP_TEXT, payload)
1144 self.ws.frame_write(sock, self.ws.OP_CLOSE, self.ws.serialize_close())
1145 self.ws.frame_write(sock, self.ws.OP_CLOSE, self.ws.serialize_close())
1153 self.ws.frame_write(sock, self.ws.OP_CLOSE, self.ws.serialize_close())
1156 self.ws.frame_write(sock, self.ws.OP_PING, '')
1165 self.ws.frame_write(sock, self.ws.OP_CLOSE, self.ws.serialize_close())
1168 self.ws.frame_write(sock, self.ws.OP_TEXT, payload)
1177 self.ws.frame_write(sock, self.ws.OP_TEXT, 'fragment1', fin=False)
1178 self.ws.frame_write(sock, self.ws.OP_CLOSE, self.ws.serialize_close())
1181 self.ws.frame_write(sock, self.ws.OP_CONT, 'fragment2')
1190 self.ws.frame_write(sock, self.ws.OP_TEXT, 'BAsd7&jh23' * 26 * 2**10)
1191 self.ws.frame_write(sock, self.ws.OP_TEXT, payload)
1192 self.ws.frame_write(sock, self.ws.OP_CLOSE, self.ws.serialize_close())
1196 self.ws.frame_write(sock, self.ws.OP_PING, '')
1205 self.ws.frame_write(sock, self.ws.OP_CLOSE, '')
1212 self.ws.frame_write(sock, self.ws.OP_CLOSE, 'a')
1219 self.ws.frame_write(sock, self.ws.OP_CLOSE, self.ws.serialize_close())
1228 self.ws.frame_write(sock, self.ws.OP_CLOSE, payload)
1237 self.ws.frame_write(sock, self.ws.OP_CLOSE, payload)
1246 self.ws.frame_write(sock, self.ws.OP_CLOSE, payload)
1285 self.ws.frame_write(sock, self.ws.OP_CLOSE, payload)
1293 self.ws.frame_write(sock, self.ws.OP_CLOSE, payload)
1305 self.ws.frame_write(sock, self.ws.OP_CLOSE, payload)
1314 self.ws.frame_write(sock, self.ws.OP_CLOSE, payload)
1346 self.ws.frame_write(sock, opcode, payload, chopsize=chopsize)
1439 self.ws.frame_write(sock, opcode, payload) # frame length is 100
1446 self.ws.frame_write(sock, opcode, payload) # frame length is 101
1493 self.ws.frame_write(sock, self.ws.OP_TEXT, message)