Files
kubesphere/vendor/gopkg.in/igm/sockjs-go.v2/sockjs/frame.go
2018-05-21 13:57:27 +08:00

12 lines
208 B
Go

package sockjs
import (
"encoding/json"
"fmt"
)
func closeFrame(status uint32, reason string) string {
bytes, _ := json.Marshal([]interface{}{status, reason})
return fmt.Sprintf("c%s", string(bytes))
}