You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
Cant parse incoming msg with response body.
The problem is, that in go1.16 json stream library by default add '\n',
/src/encoding/json/stream.go
// Terminate each value with a newline.
// This makes the output look a little nicer
// when debugging, and some kind of space
// is required if the encoded value was a number,
// so that the reader knows there aren't more
// digits coming.
e.WriteByte('\n')
but in one of incoming parser in golang-socketio that situation does not handle.
I talk about golang-socketio/protocol/socketio.go 141 line
func getMethod(text string) (method, restText string, err error) {
var start, end, rest, countQuote int
for i, c := range text {
and a good way is add treaming '\n' symbol
func getMethod(text string) (method, restText string, err error) {
var start, end, rest, countQuote int
text = strings.Trim(text, "\n")
for i, c := range text {
i tried to make a pull request but it seems, that i dont have rights for create branch
The text was updated successfully, but these errors were encountered:
Hello
Cant parse incoming msg with response body.
The problem is, that in go1.16 json stream library by default add '\n',
/src/encoding/json/stream.go
// Terminate each value with a newline.
// This makes the output look a little nicer
// when debugging, and some kind of space
// is required if the encoded value was a number,
// so that the reader knows there aren't more
// digits coming.
e.WriteByte('\n')
but in one of incoming parser in golang-socketio that situation does not handle.
I talk about golang-socketio/protocol/socketio.go 141 line
func getMethod(text string) (method, restText string, err error) {
var start, end, rest, countQuote int
for i, c := range text {
and a good way is add treaming '\n' symbol
func getMethod(text string) (method, restText string, err error) {
var start, end, rest, countQuote int
text = strings.Trim(text, "\n")
for i, c := range text {
i tried to make a pull request but it seems, that i dont have rights for create branch
The text was updated successfully, but these errors were encountered: