Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov authored Apr 24, 2024
1 parent 282803b commit c030ff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions websockets/websockets.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ func defineWebsocket(rt *goja.Runtime, w *webSocket) {
}), rt.ToValue(func(s string) error {
switch s {
case "blob":
return fmt.Errorf("blob is currently not supported, only arraybuffer is.")
return fmt.Errorf("blob is currently not supported, only arraybuffer is")
case "arraybuffer":
w.binaryType = s
return nil
default:
return fmt.Errorf("unknown binaryType %s, the supported one is arraybuffer.", s)
return fmt.Errorf("unknown binaryType %s, the supported one is arraybuffer", s)
}
}), goja.FLAG_FALSE, goja.FLAG_TRUE))

Expand Down

0 comments on commit c030ff8

Please sign in to comment.