Questions tagged [wampsharp]

WampSharp is an implementation of WAMP (the Web Application Messaging Protocol) for .NET

The source code is hosted on GitHub. You can install WampSharp from NuGet:

PM> Install-Package WampSharp.Default

14 questions
8
votes
1 answer

WampSharp unable to connect to Poloniex?

Here is my very simple code using the latest prerelease version of WampSharp: var channelFactory = new DefaultWampChannelFactory(); var channel = channelFactory.CreateMsgpackChannel("wss://api.poloniex.com", "realm1"); await…
Aen
  • 7,433
  • 3
  • 20
  • 21
4
votes
1 answer

How to handle Errors and Connection Close using WampSharp

I have been working with WampSharp, i.e the client library provided to connect with autobahn wamp websocket. I have successfully connected with the Autobahn Wamp Websocket I created in python using a .Net client application using the following…
Gaurang
  • 371
  • 2
  • 4
  • 21
1
vote
1 answer

Multi client RPC

I have a router, a server and multiple clients. The server registers methods in the router, and the clients successfully call the methods and get the result. In some cases, I need the server to ask a specific client something. I already have the…
Philippe Paré
  • 4,279
  • 5
  • 36
  • 56
1
vote
1 answer

WampSharp authentication

I try to use WampSharp library to connect WAMP v2 server but NotImplementedException fired during connection. onChallenge method of WampSessionClient class has no implementation. How can I response 'authenticated'?
Badger
  • 11
  • 1
  • 1
1
vote
1 answer

Handler for pong message in WampSharp client

I have a WampSharp client which successfully pings my Wamp WS server created in python every 1 minute. I am sending a pong message from the server to the client on the receipt of the ping. I would like to know whether there is any handler which…
Gaurang
  • 371
  • 2
  • 4
  • 21
0
votes
1 answer

can't use await on caller and callee?

I'm writing a simplest caller console app according to this article with core3.1. When i changed channel.Open().Wait(5000); to await channel.Open();, it's stucked at line proxy.Ping();. And this is also found on a callee: Task openTask =…
zhusp
  • 131
  • 12
0
votes
1 answer

How to send a command when connecting started in WampSharp

I encountered with this problem Can't connect to Poloniex . I think I found a solution. I need to send a command when I open connecting. Like this. from websocket import create_connection import json ws =…
user45245
  • 845
  • 1
  • 8
  • 18
0
votes
0 answers

I am using wampsharpclient to connect to the websocket. I am unable to reconnect to the socket if it is disconnected

I am using wampsharpclient to connect to the websocket. I am unable to reconnect to the socket if it is disconnected.Here below is the code which I have written for connection logic and reconnecting if connection is broken or error occurs. public…
Dhinesh
  • 325
  • 1
  • 6
  • 17
0
votes
1 answer

How to send a message to a client using WampSharp?

Is it possible to do this way: WampSharp client app connects to a WampSharp Server, then this server sends message/call client's function?
ZedZip
  • 5,794
  • 15
  • 66
  • 119
0
votes
1 answer

Autobahn component with .NET router (WampSharp)

At the moment I'm playing with the WAMP proto, and I'm curious if something like this is possible, because I can't get it to work: 1.Having WAMP router written in c# (WampSharp) : const string location = "ws://127.0.0.1:9999/wsdemo"; try { …
civa
  • 459
  • 3
  • 12
0
votes
1 answer

How to send a message to a specific client using WampSharp?

Let's say I have 3 clients: Client A, Client B and Client C. They all support Ping() function, which they register using reflection (code based on WampSharp documentation): public interface IArgumentsService { …
Eternal21
  • 4,190
  • 2
  • 48
  • 63
0
votes
1 answer

WampSharp ConnectionEstablished callback not being called

I'm currently trying out the WampSharp implementation of the WAMP protocol. I wanted the code to print a message on the consol when a client connects to it. So I created a router and a client. But the message doesn't appear in the console. Here's my…
Sam
  • 341
  • 1
  • 4
  • 15
0
votes
1 answer

wampsharp session variable in rpc

I've a websocket service written in c# with wampsharp at server side and I wonder to know if there's a way to store/retrieve session's related variables or in alternative how to know the caller's session id. Thanks in advance!
0
votes
1 answer

How to ping a WebSocket server using a WampSharp Client?

I have created a WebSocket server in python using the Wamp WS. I am connecting a DotNet application containing the WampSharp client with the above mentioned WebSocket server using the following code: DefaultWampChannelFactory channelFactory = new…
Gaurang
  • 371
  • 2
  • 4
  • 21