D alternative for node.js's socket.IO?
Nick Sabalausky (Abscissa)
SeeWebsiteToContactMe at semitwist.com
Wed Oct 24 08:01:49 UTC 2018
On 10/24/18 4:00 AM, Nick Sabalausky (Abscissa) wrote:
> On 10/22/18 6:08 PM, Neia Neutuladh wrote:
>> On Mon, 22 Oct 2018 20:14:53 +0000, Fleel wrote:
>>>
>>> How simple is Vibe.D's method of sending messages between client and
>>> server? In socket.IO all I have to do is (on the sending side)
>>> socket.emit("testMessage", "Hi"), and on the receiving side,
>>> socket.on("testMessage", function(contents) {console.log(contents)}). Is
>>> Vibe.D as simple as this?
>>
>> Not quite as simple; socket.io is a very slightly higher level API.
>>
>
> Sounds like perhaps a feature request (or PR) for a simple RPC API in
> Vibe.D is in order? Sounds like it wouldn't be too difficult to just get
> it working.
>
> Things in D *CAN* be just as dead-simple as in any other language. 'Tis
> a shameful embarrassment whenever they're not... :(
I'd bet this could even be based on Vibe.D's REST functionality,
under-the-hood.
More information about the Digitalmars-d
mailing list