Define websocket header
Implement websocket encoding
refine websocket header
fix: use 1 in fin
Implement decode
fix typo
use int of opcode according to C99
use char * instead of uint8_t * for buffer