File: frame.go

package info (click to toggle)
golang-github-igm-sockjs-go 3.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 512 kB
  • sloc: javascript: 39; makefile: 5
file content (11 lines) | stat: -rw-r--r-- 208 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
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))
}