gngeorgiev / gowamp Goto Github PK
View Code? Open in Web Editor NEW:cloud: Go implementation of WAMP - The Web Application Messaging Protocol
License: MIT License
:cloud: Go implementation of WAMP - The Web Application Messaging Protocol
License: MIT License
Trying to run rpc-server example (Go 1.9.2, Windows):
`C:\Users\toplonka\Documents\go\src\wamp>go run main.go
2018/01/22 11:08:49 websocket_server.go:60: NewBasicWebsocketServer
2018/01/22 11:08:49 websocket_server.go:47: NewWebsocketServer
2018/01/22 11:08:49 realm.go:44: Established internal session: 8232508857284127
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x86ba0f]
goroutine 17 [running]:
wamp/vendor/github.com/gngeorgiev/gowamp.(*Client).Publish(0x0, 0x9b5c00, 0x14, 0xc042122010, 0x1, 0x1, 0x0, 0xc04212a180, 0xc04212a180)
C:/Users/toplonka/Documents/go/src/wamp/vendor/github.com/gngeorgiev/gowamp/client.go:476 +0x10f
wamp/vendor/github.com/gngeorgiev/gowamp.(*localClient).onJoin(0xc04214c130, 0x0)
C:/Users/toplonka/Documents/go/src/wamp/vendor/github.com/gngeorgiev/gowamp/realm.go:93 +0xa6
wamp/vendor/github.com/gngeorgiev/gowamp.(*Realm).handleSession(0xc04214c0a0, 0xc115c0, 0xc04211a150, 0x1d3f6c560c761f, 0x0, 0xc04214e0c0)
C:/Users/toplonka/Documents/go/src/wamp/vendor/github.com/gngeorgiev/gowamp/realm.go:102 +0x129
created by wamp/vendor/github.com/gngeorgiev/gowamp.(*Realm).getPeer
C:/Users/toplonka/Documents/go/src/wamp/vendor/github.com/gngeorgiev/gowamp/realm.go:43 +0x208
exit status 2
`
Would it be possible to get at some sort of connection identifier from inside an RPC call or a pub/sub event? I was thinking session but that maybe not be what I want after some research. I just would like to know who the data/call is from without having to send it on the wire each time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.