Questions tagged [socket]

Question about sending or receiving data via a connection to a server TCP socket in Mathematica.

Filter by
Sorted by
Tagged with
10
votes
2answers
118 views

How to show Plots or Graphics in mini MMA HTTP Server?

I learned some codes to make a mini HTTP server in MMA way here. ...
1
vote
0answers
35 views

Cannot SocketListen on TCP client

The following code fails to work when I try to send a message from the server to the client. ...
0
votes
0answers
66 views

How to force Close of opened stream when stream write previously failed (bug in opening stream twice)?

I opened a stream like: str = OpenWrite[NotebookDirectory[] <> "myStream.tsv"]; and made an error when writing the first line (meant to be the tsv headers):...
6
votes
1answer
465 views

Using sockets to connect to a trading platform

I'm trying to use Binance's API. The following works: ...
7
votes
0answers
283 views

Communicating with server over Websocket using SocketConnect

I am trying to connect to a web socket feed of Gdax. The documentation is here, https://docs.gdax.com/#websocket-feed. There is no account needed and the information is public. I have successfully ...
1
vote
1answer
223 views

SocketConnect not connecting to web socket address

I am trying to connect to a web socket feed of the Gdax. The documentation is here, https://docs.gdax.com/#websocket-feed. There is no account needed and the information is public. ...
14
votes
2answers
351 views

How to set ZeroMQ subscribe channel in Mathematica?

Mathematica 11.2 can do ZMQ socket programming now! But I cannot find out how to set subscribe channel from searching the doc. When using c language there is a function ...
10
votes
1answer
266 views

Connect to Socket opened by other applications

In Mathematica 11.2, there are new sockets functions that are potentially very useful in network programming. I'm trying to use it to communicate between Mathematica and some external program, but I'm ...
2
votes
0answers
473 views

How to lock a socket or create a queue for requests?

I try to implement sockets from java.net.ServerSocket in Mathematica. I execute this code step by step: Needs["JLink`"] InstallJava[] (* LinkObject[..] *) ...
7
votes
2answers
222 views

Can Wolfram Development Platform communicate in real time?

Is it possible for Wolfam Development Platform to use sockets or anything other for real time communication? For example, in Javascript I can use RethinkDb, Firebase, socket.io or something similar. ...
15
votes
2answers
984 views

Implementing Local HTTP Server

How might I implement a local HTTP server using either Java, C#, C or purely Mathematica? It should be able to respond with Mathematica input to GET and POST requests ideally on W7. This is related ...
4
votes
0answers
163 views

Data acquisition from TCP socket

At last (since 10.3) we have straightforward/documented access to TCP sockets. It's been a long wait. So far there is very little discussion of the new feature. Although some older posts are still ...
5
votes
1answer
471 views

Opening a pipe with OpenRead

My question is if it is possible to directly open a (named) pipe using OpenRead. Introduction In the docs of OpenRead, we have, under details and options, If ...