MCPcopy
hub / github.com/nirui/sshwifty / Write

Method Write

application/controller/socket.go:115–123  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

113}
114
115func (w websocketWriter) Write(b []byte) (int, error) {
116 wErr := w.WriteMessage(websocket.BinaryMessage, b)
117
118 if wErr != nil {
119 return 0, wErr
120 }
121
122 return len(b), nil
123}
124
125type socketPackageWriter struct {
126 w websocketWriter

Callers 1

GetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected