Websocket’s onmessage data length

When i use origin websocket to send data(it’s length is very small),the serve at onmessage can receive the data ,but when the data’s length exceed about 1.2kb,the serve at onmessage cannot receive any data but blank,anyone meet this question? how to fix this question?