aboutsummaryrefslogtreecommitdiff
path: root/lib/websocket/frames.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-07-01 14:46:38 +0700
committerShulhan <ms@kilabit.info>2023-07-01 17:25:15 +0700
commit7b01a3fc41b8611aa26c7d5d0f5c0f2bcd012ee0 (patch)
tree65634cbf100878c060e0a88bcd84406f9b8deb3a /lib/websocket/frames.go
parentb9f69e549f1ecde42f34cc2dab6437bb62c42fe6 (diff)
downloadpakakeh.go-7b01a3fc41b8611aa26c7d5d0f5c0f2bcd012ee0.tar.xz
lib/websocket: reformat comments and documentation
Diffstat (limited to 'lib/websocket/frames.go')
-rw-r--r--lib/websocket/frames.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/websocket/frames.go b/lib/websocket/frames.go
index b6143f45..018c0b89 100644
--- a/lib/websocket/frames.go
+++ b/lib/websocket/frames.go
@@ -17,9 +17,10 @@ type Frames struct {
// Unpack websocket data protocol from raw bytes to one or more frames.
//
// When receiving packet from client, the underlying protocol or operating
-// system may buffered the packet. Client may send a single frame one at
-// time, but server may receive one or more frame in one packet; and vice
-// versa. That's the reason why the Unpack return multiple frame instead of
+// system may buffered the packet.
+// Client may send a single frame one at time, but server may receive one or
+// more frame in one packet; and vice versa.
+// That's the reason why the Unpack return multiple frame instead of
// single frame.
//
// On success it will return one or more frames.