‘\x00hello\xff’
//from what I know, previous message translate of websocket looks like above
hello guys,
now I’m studying to make C language websocket server and done handshake
//I did check if onopen is working or not
but I face new trouble again!
previous version of rfc6455 looks just need to add ‘\x00’ and ‘\xff’ with
sentence that I wanna send to client, but now rfc6455 looks more difficult!!!
so is there no way to send sentence more easily alike previous version or should I
make dataframe? //I just wanna make chat program T_T dont need binary or other things…!
thank you for reading my question!!
//p.s : here looks so good! really thank you for kind and helpful answers
The previous format you mention is normally referred to as Hixie-76. You could use this in the short term if you limit yourself to testing against Safari (on both dektop & iOS). (Note that this will only be a short term solution as Safari will be updated in future to use a later, incompatible, protocol version.)
If you want to work against other browsers (e.g. Chrome, Firefox) then you’ll need to implement the data framing describe in RFC 6455. There is no way to communicate with these browsers without implementing this data framing.