| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
The opcode type is required to create new frame and to get the opcode in
continous frames.
|
|
The handler is called HandlerRsvControl that can be set before running
the server. Default HandlerRsvControl is nil.
Since the handler expect Frame as parameter, we need to adjust and add
two methods to access Frame's internal fields and methods; which is
exporting NewFrame function and Frame.Pack method, and adding method
Opcode() and Payload() to access Frame's opcode and payload.
|
|
This changes introduced new parameters isMasked and close code status to
function NewFrameClose; and isMasked to function NewFramePing and
NewFramePong.
This commit also introduce new type for status code: CloseCode.
|
|
Most of the constants should not be used directly, as we prefer user to
use the functions or methods based access.
|